//
//  XXNavigationController.swift
//  手账
//
//  Created by zhuxiaoxiang on 2018/12/16.
//  Copyright © 2018年 zhuxiaoxiang. All rights reserved.
//

import UIKit

class XXNavigationController: UINavigationController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if self.viewControllers.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }

}
